// pages/buyStatus/tabs/tabs.js
Component({

  /**
   * 页面的初始数据
   */
  data: {
    current: 0
  },

  properties: {
    list: Array
  },

  methods: {
    onTap: function(e) {
      const {currentTarget:{dataset:{index: current, name, status}}} = e

      this.setData({
        current
      })

      this.triggerEvent('change', { current, name, status})
    }
  },

  ready: function() {
    console.log(this.data.list, 'render manage list')
  }
  
})